.class Lcom/estrongs/android/scanner/service/c$c;
.super Ljava/lang/Object;
.source "FileMonitorTask.java"

# interfaces
.implements Lcom/estrongs/android/scanner/service/d;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/scanner/service/c;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field private a:I

.field final synthetic b:Lcom/estrongs/android/scanner/service/c;


# direct methods
.method constructor <init>(Lcom/estrongs/android/scanner/service/c;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/scanner/service/c$c;->b:Lcom/estrongs/android/scanner/service/c;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 p1, 0x0

    .line 2
    iput p1, p0, Lcom/estrongs/android/scanner/service/c$c;->a:I

    return-void
.end method

.method private a(I)I
    .locals 1

    const/4 v0, 0x4

    if-eq p1, v0, :cond_2

    const/16 v0, 0x8

    if-eq p1, v0, :cond_2

    const/16 v0, 0x40

    if-eq p1, v0, :cond_1

    const/16 v0, 0x80

    if-eq p1, v0, :cond_0

    const/16 v0, 0x100

    if-eq p1, v0, :cond_0

    const/16 v0, 0x200

    if-eq p1, v0, :cond_1

    const/4 p1, 0x0

    goto :goto_0

    :cond_0
    const/4 p1, 0x1

    goto :goto_0

    :cond_1
    const/4 p1, 0x3

    goto :goto_0

    :cond_2
    const/4 p1, 0x2

    :goto_0
    return p1
.end method

.method private a(Landroid/os/Message;)V
    .locals 3

    .line 23
    iget-object v0, p0, Lcom/estrongs/android/scanner/service/c$c;->b:Lcom/estrongs/android/scanner/service/c;

    invoke-static {v0}, Lcom/estrongs/android/scanner/service/c;->c(Lcom/estrongs/android/scanner/service/c;)Ljava/util/concurrent/atomic/AtomicInteger;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->incrementAndGet()I

    .line 24
    iget-object v0, p0, Lcom/estrongs/android/scanner/service/c$c;->b:Lcom/estrongs/android/scanner/service/c;

    invoke-static {v0}, Lcom/estrongs/android/scanner/service/c;->d(Lcom/estrongs/android/scanner/service/c;)Landroid/os/Handler;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 25
    iget-object p1, p0, Lcom/estrongs/android/scanner/service/c$c;->b:Lcom/estrongs/android/scanner/service/c;

    invoke-static {p1}, Lcom/estrongs/android/scanner/service/c;->c(Lcom/estrongs/android/scanner/service/c;)Ljava/util/concurrent/atomic/AtomicInteger;

    move-result-object p1

    invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I

    move-result p1

    const/16 v0, 0xa

    if-lt p1, v0, :cond_0

    const/4 p1, 0x0

    const/4 v0, 0x2

    .line 26
    invoke-static {p1, v0}, Landroid/os/Message;->obtain(Landroid/os/Handler;I)Landroid/os/Message;

    move-result-object p1

    .line 27
    iget-object v0, p0, Lcom/estrongs/android/scanner/service/c$c;->b:Lcom/estrongs/android/scanner/service/c;

    invoke-static {v0}, Lcom/estrongs/android/scanner/service/c;->d(Lcom/estrongs/android/scanner/service/c;)Landroid/os/Handler;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 28
    iget-object p1, p0, Lcom/estrongs/android/scanner/service/c$c;->b:Lcom/estrongs/android/scanner/service/c;

    invoke-static {p1}, Lcom/estrongs/android/scanner/service/c;->c(Lcom/estrongs/android/scanner/service/c;)Ljava/util/concurrent/atomic/AtomicInteger;

    move-result-object p1

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Ljava/util/concurrent/atomic/AtomicInteger;->set(I)V

    .line 29
    :cond_0
    iget-object p1, p0, Lcom/estrongs/android/scanner/service/c$c;->b:Lcom/estrongs/android/scanner/service/c;

    invoke-static {p1}, Lcom/estrongs/android/scanner/service/c;->c(Lcom/estrongs/android/scanner/service/c;)Ljava/util/concurrent/atomic/AtomicInteger;

    move-result-object p1

    invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I

    move-result p1

    if-eqz p1, :cond_1

    .line 30
    iget-object p1, p0, Lcom/estrongs/android/scanner/service/c$c;->b:Lcom/estrongs/android/scanner/service/c;

    invoke-static {p1}, Lcom/estrongs/android/scanner/service/c;->d(Lcom/estrongs/android/scanner/service/c;)Landroid/os/Handler;

    move-result-object p1

    iget-object v0, p0, Lcom/estrongs/android/scanner/service/c$c;->b:Lcom/estrongs/android/scanner/service/c;

    invoke-static {v0}, Lcom/estrongs/android/scanner/service/c;->f(Lcom/estrongs/android/scanner/service/c;)Ljava/lang/Runnable;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 31
    iget-object p1, p0, Lcom/estrongs/android/scanner/service/c$c;->b:Lcom/estrongs/android/scanner/service/c;

    invoke-static {p1}, Lcom/estrongs/android/scanner/service/c;->d(Lcom/estrongs/android/scanner/service/c;)Landroid/os/Handler;

    move-result-object p1

    iget-object v0, p0, Lcom/estrongs/android/scanner/service/c$c;->b:Lcom/estrongs/android/scanner/service/c;

    invoke-static {v0}, Lcom/estrongs/android/scanner/service/c;->f(Lcom/estrongs/android/scanner/service/c;)Ljava/lang/Runnable;

    move-result-object v0

    const-wide/16 v1, 0xbb8

    invoke-virtual {p1, v0, v1, v2}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    :cond_1
    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/scanner/service/c$c;->b:Lcom/estrongs/android/scanner/service/c;

    invoke-static {v0}, Lcom/estrongs/android/scanner/service/c;->e(Lcom/estrongs/android/scanner/service/c;)Ljava/util/concurrent/CopyOnWriteArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    .line 2
    invoke-virtual {p1, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 3
    iget-object p1, p0, Lcom/estrongs/android/scanner/service/c$c;->b:Lcom/estrongs/android/scanner/service/c;

    invoke-static {p1}, Lcom/estrongs/android/scanner/service/c;->e(Lcom/estrongs/android/scanner/service/c;)Ljava/util/concurrent/CopyOnWriteArrayList;

    move-result-object p1

    invoke-virtual {p1, v1}, Ljava/util/concurrent/CopyOnWriteArrayList;->remove(Ljava/lang/Object;)Z

    .line 4
    new-instance p1, Landroid/os/Bundle;

    invoke-direct {p1}, Landroid/os/Bundle;-><init>()V

    const/16 v0, 0x63

    const-string v2, "event_id"

    .line 5
    invoke-virtual {p1, v2, v0}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    const-string v0, "path"

    .line 6
    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v0, 0x0

    const/4 v1, 0x1

    .line 7
    invoke-static {v0, v1}, Landroid/os/Message;->obtain(Landroid/os/Handler;I)Landroid/os/Message;

    move-result-object v0

    .line 8
    invoke-virtual {v0, p1}, Landroid/os/Message;->setData(Landroid/os/Bundle;)V

    .line 9
    invoke-direct {p0, v0}, Lcom/estrongs/android/scanner/service/c$c;->a(Landroid/os/Message;)V

    :cond_1
    return-void
.end method

.method private a(ILjava/lang/String;)Z
    .locals 6

    .line 32
    iget v0, p0, Lcom/estrongs/android/scanner/service/c$c;->a:I

    const/16 v1, 0x40

    const/16 v2, 0x200

    const/4 v3, 0x2

    const/4 v4, 0x1

    if-nez v0, :cond_2

    if-eq p1, v2, :cond_2

    if-eq p1, v1, :cond_2

    const/16 v0, 0x400

    if-eq p1, v0, :cond_2

    .line 33
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 34
    invoke-virtual {v0}, Ljava/io/File;->isDirectory()Z

    move-result v5

    if-eqz v5, :cond_0

    .line 35
    iput v4, p0, Lcom/estrongs/android/scanner/service/c$c;->a:I

    goto :goto_0

    .line 36
    :cond_0
    invoke-virtual {v0}, Ljava/io/File;->isFile()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 37
    iput v3, p0, Lcom/estrongs/android/scanner/service/c$c;->a:I

    goto :goto_0

    :cond_1
    const/4 p1, 0x0

    return p1

    .line 38
    :cond_2
    :goto_0
    iget v0, p0, Lcom/estrongs/android/scanner/service/c$c;->a:I

    if-ne v0, v3, :cond_3

    goto :goto_1

    :cond_3
    if-ne v0, v4, :cond_5

    const/16 v0, 0x80

    if-eq p1, v0, :cond_4

    const/16 v0, 0x100

    if-ne p1, v0, :cond_7

    .line 39
    :cond_4
    iget-object p1, p0, Lcom/estrongs/android/scanner/service/c$c;->b:Lcom/estrongs/android/scanner/service/c;

    invoke-static {p1}, Lcom/estrongs/android/scanner/service/c;->a(Lcom/estrongs/android/scanner/service/c;)Lcom/estrongs/android/scanner/service/b;

    move-result-object p1

    if-eqz p1, :cond_7

    .line 40
    iget-object p1, p0, Lcom/estrongs/android/scanner/service/c$c;->b:Lcom/estrongs/android/scanner/service/c;

    invoke-static {p1}, Lcom/estrongs/android/scanner/service/c;->a(Lcom/estrongs/android/scanner/service/c;)Lcom/estrongs/android/scanner/service/b;

    move-result-object p1

    invoke-virtual {p1, p2}, Lcom/estrongs/android/scanner/service/b;->a(Ljava/lang/String;)V

    goto :goto_1

    :cond_5
    if-eq p1, v1, :cond_6

    if-ne p1, v2, :cond_7

    .line 41
    :cond_6
    iget-object p1, p0, Lcom/estrongs/android/scanner/service/c$c;->b:Lcom/estrongs/android/scanner/service/c;

    invoke-static {p1}, Lcom/estrongs/android/scanner/service/c;->a(Lcom/estrongs/android/scanner/service/c;)Lcom/estrongs/android/scanner/service/b;

    move-result-object p1

    if-eqz p1, :cond_7

    .line 42
    iget-object p1, p0, Lcom/estrongs/android/scanner/service/c$c;->b:Lcom/estrongs/android/scanner/service/c;

    invoke-static {p1}, Lcom/estrongs/android/scanner/service/c;->a(Lcom/estrongs/android/scanner/service/c;)Lcom/estrongs/android/scanner/service/b;

    move-result-object p1

    invoke-virtual {p1, p2}, Lcom/estrongs/android/scanner/service/b;->b(Ljava/lang/String;)V

    :cond_7
    :goto_1
    return v4
.end method


# virtual methods
.method public a()V
    .locals 0

    return-void
.end method

.method public a(IILjava/lang/String;I)V
    .locals 1

    .line 10
    invoke-static {p3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    :cond_0
    const/4 v0, 0x1

    if-ne p1, v0, :cond_1

    .line 11
    iget-object p1, p0, Lcom/estrongs/android/scanner/service/c$c;->b:Lcom/estrongs/android/scanner/service/c;

    invoke-static {p1}, Lcom/estrongs/android/scanner/service/c;->e(Lcom/estrongs/android/scanner/service/c;)Ljava/util/concurrent/CopyOnWriteArrayList;

    move-result-object p1

    invoke-virtual {p1}, Ljava/util/concurrent/CopyOnWriteArrayList;->isEmpty()Z

    move-result p1

    if-nez p1, :cond_1

    .line 12
    invoke-direct {p0, p3}, Lcom/estrongs/android/scanner/service/c$c;->a(Ljava/lang/String;)V

    .line 13
    :cond_1
    iput p4, p0, Lcom/estrongs/android/scanner/service/c$c;->a:I

    .line 14
    invoke-direct {p0, p2, p3}, Lcom/estrongs/android/scanner/service/c$c;->a(ILjava/lang/String;)Z

    move-result p1

    if-nez p1, :cond_2

    return-void

    .line 15
    :cond_2
    new-instance p1, Landroid/os/Bundle;

    invoke-direct {p1}, Landroid/os/Bundle;-><init>()V

    const-string p4, "operate"

    .line 16
    invoke-virtual {p1, p4, p2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 17
    invoke-direct {p0, p2}, Lcom/estrongs/android/scanner/service/c$c;->a(I)I

    move-result p2

    const-string p4, "event_id"

    invoke-virtual {p1, p4, p2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    const-string p2, "path"

    .line 18
    invoke-virtual {p1, p2, p3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 19
    iget p2, p0, Lcom/estrongs/android/scanner/service/c$c;->a:I

    const-string p3, "path_type"

    invoke-virtual {p1, p3, p2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    const/4 p2, 0x0

    const/4 p3, 0x0

    .line 20
    invoke-static {p2, p3}, Landroid/os/Message;->obtain(Landroid/os/Handler;I)Landroid/os/Message;

    move-result-object p2

    .line 21
    invoke-virtual {p2, p1}, Landroid/os/Message;->setData(Landroid/os/Bundle;)V

    .line 22
    invoke-direct {p0, p2}, Lcom/estrongs/android/scanner/service/c$c;->a(Landroid/os/Message;)V

    return-void
.end method
